Skip to content

License banner check config files#180

Merged
casaroli merged 4 commits intomainfrom
license_banner_check_config_files
Feb 27, 2026
Merged

License banner check config files#180
casaroli merged 4 commits intomainfrom
license_banner_check_config_files

Conversation

@SorinOlari
Copy link
Collaborator

@SorinOlari SorinOlari commented Feb 23, 2026

Description

Added license banner checker for following files:

  • CMakeLists.txt
  • .yaml/.yml
  • .awk
  • Kconfig
  • .conf
  • .gitignore/.gitmodules
  • .sh

Fixes issue # #133

Type of change

  • New feature (non-breaking change which adds functionality)
  • Code cleanup/refactoring
  • CI system update

How Has This Been Tested?

Intentionally introduced errors in the license banner text to ensure the script detects them as expected.

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

@SorinOlari SorinOlari requested a review from casaroli February 23, 2026 11:47
@SorinOlari SorinOlari self-assigned this Feb 23, 2026
@SorinOlari SorinOlari added this to Ocre Feb 23, 2026
-o -name '*.yml' -o -name '*.awk' -o -name '*.conf' -o -name 'Kconfig*' \
-o -name '.gitignore' -o -name '.gitmodules' -o -name '*.sh' \) \
! -name 'utlist.h' \
! -name 'CMakeCCompilerId.c' \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this file does not exist

Suggested change
! -name 'CMakeCCompilerId.c' \

! -name 'utlist.h' \
! -name 'CMakeCCompilerId.c' \
! -path './tests/Unity/*' \
! -path './build/*' \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
! -path './build/*' \

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Image I think we don't need to check build folder

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There should be no build folder. What if the build folder is somewhere else?

.gitignore Outdated
Comment on lines +6 to +9
# These are some examples of commonly ignored file patterns.
# You should customize this list as applicable to your project.
# Learn more about .gitignore:
# https://www.atlassian.com/git/tutorials/saving-changes/gitignore
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: can we clean up this?

Suggested change
# These are some examples of commonly ignored file patterns.
# You should customize this list as applicable to your project.
# Learn more about .gitignore:
# https://www.atlassian.com/git/tutorials/saving-changes/gitignore

Signed-off-by: SorinO <sorin.olari2@gmail.com>
Signed-off-by: SorinO <sorin.olari2@gmail.com>
Signed-off-by: SorinO <sorin.olari2@gmail.com>
Signed-off-by: SorinO <sorin.olari2@gmail.com>
@SorinOlari SorinOlari force-pushed the license_banner_check_config_files branch from ee8a5c9 to 1c4ce52 Compare February 25, 2026 09:29
@SorinOlari SorinOlari requested a review from casaroli February 26, 2026 09:09
@kr-t
Copy link
Collaborator

kr-t commented Feb 26, 2026

lgtm
@casaroli ?

@casaroli casaroli merged commit 66baca0 into main Feb 27, 2026
22 checks passed
@github-project-automation github-project-automation bot moved this to Done in Ocre Feb 27, 2026
@kr-t kr-t deleted the license_banner_check_config_files branch March 2, 2026 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants